﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _81参数修饰符params
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            float f = Avg(2f, 1.3f, 5.5f);
        }

        private static float Avg(params float[] array)
        {
            float sum = 0;
            for (int i = 0; i < array.Length; i++)
            {
                sum += i;
            }
            return sum / array.Length;
        }
    }
}